package com.scy.java.Test.Test06;

import java.io.FileNotFoundException;
import java.io.FileWriter;
import java.io.IOException;

public class Test03 {
    public static void main(String[] args) {
        try {
            FileWriter fos =
                    new FileWriter("java.txt", true);
            fos.write("\n我将来会很成功");
            fos.close();
        } catch (FileNotFoundException e) {
            throw new RuntimeException(e);
        } catch (IOException e) {
            throw new RuntimeException(e);
        }

    }
}
